package com.superMall.service;

import com.github.pagehelper.PageInfo;
import com.superMall.common.ServerResponse;
import com.superMall.pojo.Shipping;

import java.util.List;
import java.util.Map;

/**
 * Created by guanwei on 2017/11/21.
 */
public interface IShippingService {

    ServerResponse<Map> add(Shipping shipping, Integer userId);
    ServerResponse del(Integer userId, Integer shippingId);
    ServerResponse update(Shipping shipping, Integer userId);
    ServerResponse<Shipping> select(Integer userId, Integer shippingId);
    ServerResponse<PageInfo> list(Integer userId, Integer pageNum, Integer pageSize);

}
